﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SF.WebClient.Controllers
{
    public class ComboboxController : BasicController
    {
        #region getSelected 获取已选项

        public ViewResult GetSelectedDemo()
        {
            return View();
        }

        public PartialViewResult GetSelectedSource()
        {
            return PartialView();
        }

        public void ViewGetSelectedSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.extensions.combobox.getSelected.js");
        }

        public PartialViewResult GetSelectedExplain()
        {
            return PartialView();
        }

        #endregion

        #region getSelections 获取已选项集合

        public ViewResult GetSelectionsDemo()
        {
            return View();
        }

        public PartialViewResult GetSelectionsSource()
        {
            return PartialView();
        }

        public void ViewGetSelectionsSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.extensions.combobox.getSelections.js");
        }

        public PartialViewResult GetSelectionsExplain()
        {
            return PartialView();
        }

        #endregion

        #region findItem 获取某一项

        public ViewResult FindItemDemo()
        {
            return View();
        }

        public PartialViewResult FindItemSource()
        {
            return PartialView();
        }

        public void ViewFindItemSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.extensions.combobox.findItem.js");
        }

        public PartialViewResult FindItemExplain()
        {
            return PartialView();
        }

        #endregion

        #region findItems 获取指定项集合

        public ViewResult FindItemsDemo()
        {
            return View();
        }

        public PartialViewResult FindItemsSource()
        {
            return PartialView();
        }

        public void ViewFindItemsSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.extensions.combobox.findItems.js");
        }

        public PartialViewResult FindItemsExplain()
        {
            return PartialView();
        }

        #endregion

        #region groupField 修复分组Bug

        public ViewResult GroupFieldDemo()
        {
            return View();
        }

        public PartialViewResult GroupFieldSource()
        {
            return PartialView();
        }

        public void ViewGroupFieldSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.fixeds.combobox.groupField.js");
        }

        public PartialViewResult GroupFieldExplain()
        {
            return PartialView();
        }

        #endregion

        #region autoComplete 根据拼音自动显示

        public ViewResult AutoCompleteDemo()
        {
            return View();
        }

        public PartialViewResult AutoCompleteSource()
        {
            return PartialView();
        }

        public void ViewAutoCompleteSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.extensions.combobox.autoComplete.js");
        }

        public PartialViewResult AutoCompleteExplain()
        {
            return PartialView();
        }

        #endregion

        #region setValues 修复重置Bug

        public ViewResult SetValuesDemo(bool loadJs = false)
        {
            ViewBag.LoadJs = loadJs;

            return View();
        }

        public PartialViewResult SetValuesSource()
        {
            return PartialView();
        }

        public void ViewSetValuesSource()
        {
            this.WriteSourceCode("/Scripts/jquery-easyui-extensions/combobox/jeasyui.fixeds.combobox.setValues.js");
        }

        public PartialViewResult SetValuesExplain()
        {
            return PartialView();
        }

        #endregion
	}
}